import { IContentTable } from '@/components/page-content/index';

export const contentTableConfig: IContentTable = {
  tableTitle: '菜单列表',
  propList: [
    { prop: 'name', label: '菜单名称', minWidth: 100 },
    { prop: 'type', label: '类型', minWidth: 80 },
    { prop: 'url', label: '菜单url', minWidth: 120 },
    { prop: 'icon', label: '菜单icon', minWidth: 100 },
    { prop: 'permission', label: '按钮权限', minWidth: 100 },
    {
      prop: 'createAt',
      label: '创建时间',
      minWidth: 160,
      slotName: 'createAt'
    },
    {
      prop: 'updateAt',
      label: '更新时间',
      minWidth: 160,
      slotName: 'updateAt'
    },
    { label: '操作', minWidth: 150, slotName: 'handler' }
  ],
  isShowSerialNumberColumn: false,
  isShowSelectColumn: false,
  // 这是可展开的列表的配置, 需要有的话就加上这些配置.
  childrenProps: {
    rowKey: 'id',
    treeProp: {
      children: 'children'
    }
  },
  showPagination: false
};
